
import { createRouter, createWebHashHistory } from 'vue-router'
 
const router = createRouter({
 history: createWebHashHistory(import.meta.env.BASE_URL),
 routes: [
   
    {
		path: '/',
		component: () => import('@/views/Layout.vue'),
      children: [
         {
            path:'/employees',
            component:()=>import('@/views/Employee/EmployeeView.vue')
        },{
          path:'/foodCategory',
          component:()=>import('@/views/Food/FoodCategory.vue')
      },{
       path:'/foodList',
       component:()=>import('@/views/Food/FoodList.vue')
    },{
       path:'/foodInsert',
       component:()=>import('@/views/Food/FoodInsert.vue')
    },{
      path:'/orderList',
      component:()=>import('@/views/Order/OrderList.vue')
    },
    {
      path:'/businessList',
      component:()=>import('@/views/Business/BusinessList.vue')
    },{
      path:'/businessRegister',
      component:()=>import('@/views/Business/BusinessRegister.vue')
    },{
      path:'/recommendShop',
      component:()=>import('@/views/System/RecommendShop.vue')
    },{
      path:'recommendFood',
      component:()=>import('@/views/System/RecommendFood.vue')
    },{
      path:'recommendHot',
      component:()=>import('@/views/System/RecommendHot.vue')
    },{
      path:'/orderCount',
      component:()=>import('@/views/Shop/OrderCount.vue')
    }
      ]
      
	},{
   path:'/login',
   component:()=>import('@/views/Login.vue')
}
 ]
})

export default router
